package com.terrace.web.tagext.easyui.support;

/**
 * 网格列自定义标签扩展
 * 
 * @author jiangyg
 *
 */
public abstract class GridColumnTagSupport extends BaseTagSupport {

	private static final long serialVersionUID = 2759596643918894900L;

	/**
	 * 字段标题
	 */
	protected String title;

	/**
	 * 字段值
	 */
	protected String field;
	
	/**
	 * 字段宽度
	 */
	protected Integer width;

	/**
	 * 字段跨列
	 */
	protected String rowspan;

	/**
	 * 字段跨行
	 */
	protected String colspan;

	/**
	 * 数据对齐方式，可选值有left,right,center
	 */
	protected String align;

	/**
	 * 是否排序
	 */
	protected boolean sortable = true;

	/**
	 * 排序--仅支持"asc"/"desc"
	 */
	protected String order;

	/**
	 * 允许列可以变化大小
	 */
	protected String resizable;

	/**
	 * 是否显示选择框
	 */
	protected boolean checkbox;

	/**
	 * 自定义函数名称
	 */
	protected String formatter;

	/**
	 * 列隐藏(隐藏:false)
	 */
	protected boolean hidden = false;

	/**
	 * 是否显示图片字段
	 */
	protected boolean showImage;

	/**
	 * 自定义图片显示大小
	 */
	protected String imageSize;

	/**
	 * 是否为添加查询列
	 */
	protected boolean query = false;

	/**
	 * 是否是冰冻列 默认不是
	 */
	protected boolean frozen = false;

	/**
	 * 自定义函数名称
	 */
	protected String funname;

	/**
	 * 自定义链接
	 */
	protected String url;

	/**
	 * 字典
	 */
	protected String dictionary;

	/**
	 * Td的CSS
	 */
	protected String style;

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getField() {
		return field;
	}

	public void setField(String field) {
		this.field = field;
	}

	public Integer getWidth() {
		return width;
	}

	public void setWidth(Integer width) {
		this.width = width;
	}

	public String getRowspan() {
		return rowspan;
	}

	public void setRowspan(String rowspan) {
		this.rowspan = rowspan;
	}

	public String getColspan() {
		return colspan;
	}

	public void setColspan(String colspan) {
		this.colspan = colspan;
	}

	public String getAlign() {
		return align;
	}

	public void setAlign(String align) {
		this.align = align;
	}

	public boolean isSortable() {
		return sortable;
	}

	public void setSortable(boolean sortable) {
		this.sortable = sortable;
	}

	public String getOrder() {
		return order;
	}

	public void setOrder(String order) {
		this.order = order;
	}

	public String getResizable() {
		return resizable;
	}

	public void setResizable(String resizable) {
		this.resizable = resizable;
	}

	public boolean isCheckbox() {
		return checkbox;
	}

	public void setCheckbox(boolean checkbox) {
		this.checkbox = checkbox;
	}

	public String getFormatter() {
		return formatter;
	}

	public void setFormatter(String formatter) {
		this.formatter = formatter;
	}

	public boolean isHidden() {
		return hidden;
	}

	public void setHidden(boolean hidden) {
		this.hidden = hidden;
	}

	public boolean isShowImage() {
		return showImage;
	}

	public void setShowImage(boolean showImage) {
		this.showImage = showImage;
	}

	public String getImageSize() {
		return imageSize;
	}

	public void setImageSize(String imageSize) {
		this.imageSize = imageSize;
	}

	public boolean isQuery() {
		return query;
	}

	public void setQuery(boolean query) {
		this.query = query;
	}

	public boolean isFrozen() {
		return frozen;
	}

	public void setFrozen(boolean frozen) {
		this.frozen = frozen;
	}

	public String getFunname() {
		return funname;
	}

	public void setFunname(String funname) {
		this.funname = funname;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getDictionary() {
		return dictionary;
	}

	public void setDictionary(String dictionary) {
		this.dictionary = dictionary;
	}

	public String getStyle() {
		return style;
	}

	public void setStyle(String style) {
		this.style = style;
	}

}
